import request from '@/utils/request'

export function add(data) {
  return request({
    url: '/houseView',
    method: 'post',
    data
  })
}
export function batchAdd(data) {
  return request({
    url: '/houseView/batchAdd',
    method: 'post',
    data
  })
}
export function update(data) {
  return request({
    url: '/houseView',
    method: 'put',
    data
  })
}

export function getHouseViewListByHouseId(id) {
  return request({
    url: '/houseView/list/' + id,
    method: 'get',
    params: {}
  })
}

export function getHouseTagL(type) {
  return request({
    url: '/tag/list/' + type,
    method: 'get',
    params: {}
  })
}

export function removeHouseView(id) {
  return request({
    url: '/houseView/' + id,
    method: 'delete'
  })
}

export function rateAdd(data) {
  return request({
    url: '/dataConfig/addOrUpdateRate',
    method: 'post',
    data
  })
}

export function multipleAdd(data) {
  return request({
    url: '/dataConfig/addOrUpdateFinanceCatalog',
    method: 'post',
    data
  })
}
export function houAdd(data) {
  return request({
    url: '/tag',
    method: 'post',
    data
  })
}

export function updatehou(data) {
  return request({
    url: '/tag',
    method: 'put',
    data
  })
}

export function getRateList(data) {
  return request({
    url: '/dataConfig/rateList',
    method: 'post',
    data
  })
}

export function getmultipleList(data) {
  return request({
    url: '/dataConfig/getFinanceCatalogList',
    method: 'post',
    data
  })
}

export function saveaddress(data) {
  return request({
    url: '/area',
    method: 'post',
    data
  })
}

export function delRate(id) {
  return request({
    url: '/dataConfig/deleteRate/' + id,
    method: 'delete'
  })
}

export function delDz(id) {
  return request({
    url: '/area/' + id,
    method: 'delete'
  })
}

export function updateDZ(data) {
  return request({
    url: '/area',
    method: 'put',
    data
  })
}

export function getDetail(id) {
  return request({
    url: '/area/' + id,
    method: 'get',
    params: {}
  })
}

export function delFour(id) {
  return request({
    url: '/dataConfig/deleteProjectItem/' + id,
    method: 'delete'
  })
}

export function delOwner(id) {
  return request({
    url: '/tag/' + id,
    method: 'delete'
  })
}

